added custom branch support