[IMP]Minor fixing of api's.