added three do_action statements, which would make writing plugins for inventory management way easier.