add support for rc file