fixed bug with the output path for the keyed output. the default path is returned _unless_ the overloaded _write_ method returns a path.