refactored to only process GET operations