readd some old code

@pbauer, could you have a look at this?
@do3cc just a test