updated init script to have logging