replaced require with require_once to fix 'already declared' issue