added logic_reset, fixed timer, improved npcs