modified reset plugin fun to return data in dict