move rb to lib folder