handle request type