raintpl implementation with better path detection
builded example activities