need to fix component properly for this to work :(