just some pieces of code, unsorted and not documented have fun :)