avoid redirect
test and fix empty files