restored 'sub' direcotry to read substrate from.