fixed some issues, added configuration interface (work in progress)