fixed some issues with rake gem