first working version of librms