almost working copy, there is still problems with some comments and with multilined-commands