prepare environment for rails 4