catching errors
adding timezone support