return empty file instead of undefined