init vars before setting -e