remove debug logging
reset action variable when removing the action
move deployer further out of scope since it's reused