- moving more functions to ruby libs