support STAGEDIR