q
added remote service checking logic