implements opsql