add workspace check before submit code directly