fixed handler registration bug, new version