improved logging; updated gems