fixed most of the env breakages for pairing station, functions are still out of whack