refactored Rakefile build process