adapt for docker