init gems and base