[F] fix to modern environment
[F] fix app-sample
[A] implement index