moving riot helper to a lib module