update lib/context.php