rewrite to use debian_pkg