refactor initialization
update gems