update misc functions
update examples