modified loopback script to output more info