fixes a bug introduced in d074919f6e7afe19e62d0c91e2e7599bcfda7a36
bugfixes
adds some more rf_* functions