had to hack constructor