a start on localization
get rid of f(|p|) for apd.