add foobar functionality

fixes smartmob/sm71-test#1
@nicoputten 

- [ ] Test
- [x] Implement function
- [ ] Add testcase
- [ ] Kill @marijnvdwerf