put everything in analyze_blocks in functions
process net file