debugged resource methods, refactored into separate controllers