use package parsing logic