createMainEntryPoint: works again for the most simple cases