add search function
add storeObjectsAs function
fix some helper functions