modified script for debian package