working package dir and clean up