i managed to remove most of the errors by moving stuff into wrappers and writing functions on those instead of extension functions
seems like scripting cannot resolve extension function (but the IDE can, might be a version mismatch since i cannot use 1.4.0 because gradle..)
but some stuff need to be in extension functions and are not resolved