relaying works, need to clean up and do output and deregistraiton