Homegrown typercises by hku/imt1a&b 08/09