fix variable sourcing