Never mind, you are right, it was my code. got it all working now, thanks for nudging me in the right direction.