bug fixes, redirection variables, ensured check path works