refactored and cleaned up child_sa interface