checks for net first
checks for net first
removed double include
minor refactor