adding brepl stuff