small fixes
updates from sanmiks project