env refined, still needs testing and packet work

still unstable, don't use