add gems and modify some config