fixed uploads path
fixed destroying of resources