fixed (and improved) on demand emperor socket