added more helpful errors