bag tools and bag type modes

Signed-off-by: themuntdregger <themuntdregger@gmail.com>