update schema
adapt and fix grain_transport procedure