change global constants to config values
update seed