added support to return hash instread of ROXML object