updated to check if user is admin
udpated to check if files exist before copy