add brepl, more converted functions