fixes the README regarding new return type of factory