completly rewrote build_brala.d