Catch file missing errors
remove dev mode