legacy code update

Changed old path management extension with new dynamic method

Moved deleting tags to its own try instance