xml file check at startup and activity squares