using dockops, adapting/removing code