added support for pi commands