improving handling for custom overlays
remove state for pickling - use json
Improving edge-case handling
remove directed
testing for anm