moved condition

use an exit for a condition instead of wrapping almost the entire script
in an "if"
more debugPause's