move ninja check at the beginning