Move directory making to init
Use http proxy for https