config method now only for files