a minimal application framework used by my self