bug fixes, added import connection