loosened Gemfile and added init function