add custom directory path support