added interface for kdb