extend Result and Hdfs to emulate functionality from MonadPlus