set site entity + code formating