_get and _post refactored