modified filebin functions