improved dock* scripts