added state exporting to rk module