move netwait and routing to local