prepare for pub