found some interesting stuff on stackoverflow. testing it now.