now use a config to supply all required variables
split config and environment data types
parse the Post body rather than the query string