Rewrite of exportstack plugin