moved all squel based code out of the core module to here