massive update on rakefile and removing deprecated stuff