left to fix: that wierd delay-bug. or maybe all function calls from within function?