fixing up hoist script