init directory and copy lib