Make adpater an environment parameter