controller extension thanks to @dschach