towards Marlin - added custom temp tables