added API
added dirs