tidy up code_dump