find package automatically