update interface for new API design