plugin not working, changing to custom solution