refresh modules instead of only sync code