initial hook, bunch of changes from testing pinger