poor man's copy/paste implementation