added new functions to RWTY source