fixed deprecations related to the setup method