debug mode depends on existence of file app/dev
added error presenter