changing module ref check