wip
check environment