do magic in document.ready (for now)