It turns out env array should be last argument