added ctools plugin + minor chnages in field functionality