some foo source codes scraps