fixed some problems with the interface