update to rules to use shared mem