added before script for pulling