better BitBucket parsing