EoB script added as comment into lua script
fixed few bugs