almost finished reference impl of creep movement.