extending common block elim to modules