check everything onload