trying stuff for bootstrapping; works, but plot of sqrt abs res loooks bad
script for testing