get and head method handling