improved dock scripts