bugfix headesr/body generation
TODO: how to be nicer with pointer to non declared structures