clean up, rename to PEA_connect