removing errors, also changed require to require_once