implement status command