a basic  command with optional logging handling