add side_effects function
move side_effects to sandbox