beforeContainerCompile method added to README