adding bapq script