fixes for dock functions