add log and try some exceptions