for publishing to pub