stave detection should be working now