refactor dotdeb, mod-php, tools