minor changes to original ROUTE ME lib