turned off PHP warnings to avoid Full Path Disclosure on warnings. Better fix needed