fixed prototype for support dir method