command for spawns implemented