RegisterFactory added; fixed bug in authStorage