added logs in gpk c, and fixed empty package issue