init from local