remove memoir dependencies