added factory methods in dock instance