small schetches for spatial API