this is probably the nastiest thing,  but added action registering