add exceptions in case of invalid location