translate some functions to RFW class