clean up config sample, use sc for getting directory handler