update middleware ua to use app command
update readme to sync docs with code