make lights api work