refactored complex get to just handle query params