simplified conditional logic, added version method and added version to site payload