renamed main so it doesn't look like it encapsulataes the main functionality of this addon