pusnotifictaion

fixed errors, have logging.