Version 5 change require.main rest.get loop