added $tls service and updates to entityManager
updated package