clean up and format manifest