moved util out of sam7sbase
extracting non platform code outside of SAM7s folders