fix switch on pipe action
fixes #22