added bucketDir option