now it loads model from a folder, added function ‘spawn’