added command passing