added spin package, premissions, loading template