implementing depth
Adding action management for archive too and checking status