fixed with ugly try catch null exceptions in application_start