got rid of locationisvalid on all platforms