used real path for ap