added necessary changes to have a ruby only script