config file implemented, adjusted script