added rpkc_s
added rpkc_g + some checks