made $params always available
added params example