better error handling, disabling APC cache