add begin block to add local lib