adds check in console to avoid crashing when comparing same commands