implementation of reloadconfig

See #144