initial draft of light API.