adding local topology code