updated for debian support