temporary fix, better incoming
(Mostly) correct function application for ints and chars