Command comparison
fixed some import error