finally debugged pug