adapt program for docker