separate out system and sample variables from script