hotot: check on id instead of application name
hotot: use lambda's instead of defined methods