i have ported all functions now but... surprise... it doesn't work! looks very faulty and with stuff like that i find it very hard to figure out what's wrong. i have to stop now but i hope i will have time soon to investigate it and get it working.