some extra error handling