improvement: return exit status for remote flags