update to allow for POST and GET values