new nice RBF implementation. seems working. But more checks on user input should be done

Change-Id: I8cee8add043799adefd1fea7899afbdcc012ed5b