[FIX] couple of bugs after the early refactoring.
[MINOR] removed d default value from code
[FIX] runokapi had a bug