add env
fix shell counter bug - can't be float