added config to loop script