added more functions to cas3d