thanks! i got it to work. the reason for the problem was this:

first pass:

colormap
detailmap

second pass:

shadowmap
disable

if you don't disable the second texture stage of the second pass it uses the same settings as in the first pass which leads to strange results!