adding configdir option