added foundry code
modified to use local data
implement plane service prototype