added utility to resolve resulting filename