make compare_with_remote script bettar