make connection lazy