clean getObject and starting doc