add setFileName function for testing