cleaned up binary location retrieval