Completed pub service

Still require to implement exception