core: getting rid of reflection warnings