script file & logging implemented