sm: begin implementing create_endpoint