fix logging
wrap initialization to try..catch..