utility and code pieces