made reflect metadata a flag (fixes #9)