improved accuracy/error-handling of nth(..) selector function. declaring some module specifc functions (more to come)