fill in env struct for bind in printer