first try at setting up RPL (not sure yet if it's good)