updated usage with new switches