adding files in progress, seg fault due occuring, need to troubleshoot