check for updates and mild code cleanup + fixes