some fixes for adding files ...