adding constructor detection - not yet working