finish logistics query feature
refactor command parsing code