added tip4commit code
compilation fixes