Improve coding of  pubfile