serialize locations