added status pub subroutine