added preregister option
Merge pull request #36 from buren/preregister

added preregister option