create package objects and inter-thread lock