ajax_wait temporary hack and see
precompile should not longer be needed