added action system (major changes!)