add lib dir and gemfile