added prepared stmt support