added testing code to allow skipping of boss detection