added immediate file flag