improving how the q library is used