adding ability to spawn new type