added a getStyle function in mCore