fixed errors, but causes a few warnings, tip tools now work