fix variable name for request body and add config method to event