switch order of event hooks so that 'on_getting_item' works properly