rules: fix way to set environmen