small changes to gemfile and AP config