added some error logging!