fixed check.sh so it actually runs