some fixes & checks env vars for digits only