add miranda methods
formatting
update test