added some custom errors