working with dependencies switch