allow modules with no own functions (handle eof properly)