change packages and add logger