removed var_dump and exit that was swallowing errors