added basic dock functions