returning  object from export function for better programmatic handling