add command availibility checks, code style