add config, delete magic nums