implements script factory with routes