changed existing code to use task library changes