revamped logic to make everything easily configurable
errr...