preventing uneccessary server calls