added spec diretory feature