added check for setup_private's existance