modified net and layers parser