this was necessary to make it work with typescript :(