cleanup and importing models from json