added class factory to otw library