basic hack of a script for some proof-of-concept