added with to avoid closing conn all the time