added extractToFolder