'final' script moved to the router