Finished rewrite apps functions

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>