fixed bug in first time reg, made imports protocol agnostic