added to and cleaned up docker helpers function