well I started out with a situation where the whole script simply did not work at all ... so I started removing magic until it worked ...