updated put_or_post method to return symbols instead of strings