more work in progress ...javascript is annoying....