added specific error msg for unkown types