Packages, some functions for spid login