port library for spark core