changed handle to token to match rest of code
added in agent delete code