adding files dynamically