minor update to fix requestmethod declaration