Add support of remote zip file and flag file for IM check