Adding pux global variable
setup shutdown handler and rinit handler