modified for debian 6.0