parse stream locations properly, bp.c still needs work for #82