modified method for startup
Minor changes to support docker features.