fixed projectiles and added debug tool