add support for configurable name and file