refactored oauth error file and resources paths