inital work. 1st working version (lots of limitations, lots of bugs, ...)