changes interfaces for the execute and prepare, added z coord for the offset vector