somewhat working location code.