added detect file, pass through