added explicit module check during runtime