fixed kast and imp, except for .