large rewrite to permit folder creation from webpage