fixes some formatting stuff
begins work on moving plugin management to a separate module