removed unecessary variable
Add better status codes and abs path for archive folder