moved custom functions to qimport.js