make sure ctype is passed forward everywhere