registerhelper is now (kind of) working

registerhelper works now with gcc BUT IS NOT THREAD SAVE