adding api registering points