fix needed to work with rest client