init obj in c_popup_read_dir class
corrected function prototype in tools namsapce