cleanup api
fix API for slicer