ktbs: minor improvements