add support for  switch; parameterize ; provide working chaining of jobs