changed to allow custom sources filename