fix bugs in read messages - delete job manager