revert to use application instead of library