separate script and config