Pyrolysis towards the manufacturing of valuable products