fix broken ccalls and use generic Ints