init with code base