initial version , not yet working for sandboxd'ed apps