added and cleaned docker helpers function