add implementation to functions from forked github repo