created this script for fun. may it could help some of you :)